home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
NETNEWS_
/
NEWS_SRC
/
UTILITY.C
< prev
Wrap
C/C++ Source or Header
|
1990-10-14
|
636b
|
35 lines
#include "Global.h"
#include "Constants.h"
void
errmsg(type,s,a,b,c,d,e,f,g) /* varargs, what varargs? */
char *s;
{
char mbuf[256];
sprintf(mbuf,s,a,b,c,d,e,f,g);
CtoPstr(mbuf);
ParamText(mbuf, "", "", "");
PositionDialog('ALRT', ALRTgeneral, 0);
InitCursor();
if (type == 3)
StopAlert(ALRTgeneral, NULL);
else if (type == 2)
CautionAlert(ALRTgeneral, NULL);
else
NoteAlert(ALRTgeneral, NULL);
}
askYesNo(s,a,b,c,d,e,f,g)
char *s;
{
char mbuf[256];
sprintf(mbuf,s,a,b,c,d,e,f,g);
CtoPstr(mbuf);
ParamText(mbuf, "", "", "");
PositionDialog('ALRT', 130, 0);
InitCursor();
return (Alert(130, NULL) == 1);
}